<template>
  <div class="home">
    <el-card class="welcome-card">
      <template #header>
        <div class="card-header">
          <h2>欢迎使用</h2>
        </div>
      </template>
      <div class="card-content">
        <el-button type="primary" @click="goToAbout">关于我们</el-button>
          <el-button type="primary" @click="goToZheJiao">折角</el-button>
      </div>
    </el-card>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goToAbout = () => {
  router.push('/about')
}
const goToZheJiao = () => {
  router.push('/zhejiao')
}
</script>

<style lang="scss" scoped>
.home {
  padding: 20px;
  
  .welcome-card {
    max-width: 600px;
    margin: 0 auto;
    
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      
      h2 {
        margin: 0;
        color: #409EFF;
      }
    }
    
    .card-content {
      text-align: center;
      padding: 20px 0;
    }
  }
}
</style> 